package com.javastar.modules.mail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.javastar.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 邮件模版表
 * </p>
 *
 * @author Java星球
 * @since 2023-07-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("novel_mail")
@ApiModel(value="MailEntity对象", description="邮件模版表")
public class MailEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "邮件id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "邮件主题")
    private String subject;

    @ApiModelProperty(value = "邮件模版，带有占位符")
    private String content;

    @ApiModelProperty(value = "邮件类型 0邮件注册")
    private Integer mailType;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
